package pers.qianyu.backup.service;

/**
 * 数据库备份与恢复
 *
 * @author mizzle rain
 * @date 2020-10-27 13:45
 */
public interface BackupService {
    /**
     * 备份数据
     *
     * @param backupFolderPath 备份数据存放的文件夹
     * @return
     */
    boolean backup(String backupFolderPath);

    /**
     * 恢复数据
     *
     * @param filePath sql 文件路径
     * @return
     */
    boolean restore(String filePath);
}
